
	<form method="post" name="frm_SelCity" onSubmit="return false;" action="{if $SelFlag == 1}{$apm.baseurl}search/{$form_act}{else}{$apm.baseurl}rstobi/rstobi{/if}">
			{if $block_title}<h2 class="searchTitle">{$block_title}</h2>{/if}
			{if $block_text}<p class="txt02">{$block_text}</p>{/if}
			{if $SelFlag != 1}<p class="searchAttTxt01">※10ヵ所まで選択できます。</p>{/if}

			<!-- selectCategoryAnchor -->
			<div id="selectCategoryAnchor">
				<!-- innerBlock -->
				<div class="innerBlock01">
					<div class="innerBlock02">
					<ul>
					{foreach from=$Mapping item=v name="prefLoop"}
						<li><a href="#area{$smarty.foreach.prefLoop.iteration}">{$v.TODOUFUKEN_NAME}</a></li>
					{/foreach}
					</ul>
					</div>
				</div>
				<!-- /innerBlock -->
			</div>
			<!-- /selectCategoryAnchor -->
			<!-- selectDetailBlock02 -->
			{foreach from=$Mapping item=v name="prefLoop"}
			<div class="selectDetailBlock02" id="area{$smarty.foreach.prefLoop.iteration}">
				<p class="title">{$v.TODOUFUKEN_NAME}</p>
				<!-- innerBlock01 -->
				<div  class="innerBlock01">
					<!-- 政令指定都市 -->
					{foreach from=$v.SITEITOSI_DATA item=sitei name="siteiLoop"}
					<!-- innerBlock02 -->
					<div  class="innerBlock02">
						<p class="area">
						{if !$selSiteitosiKbn && $sitei.STATIC_URL!="" }<a href="{$sitei.STATIC_URL}">{/if}
							【{$sitei.SITEITOSI_NAME}】
						{if !$selSiteitosiKbn && $sitei.STATIC_URL!="" }</a>{/if}
						</p>
						{assign var="cntS" value=$sitei.SITEI_SIKU_DATA|@count}
						{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
						{foreach from=$sitei.SITEI_SIKU_DATA item=sitei_siku name="siteiSikuLoop"}
							{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 1}
								{if $smarty.foreach.siteiSikuLoop.iteration+3 > $cntS && $cnt == 0}
								<ul class="last">
								{else}
								<ul>
								{/if}
							{/if}
								{* SelFlag == 1の場合、単一選択(radioボタン) *}
								<li>
									{*<!--{if $sitei_siku.STATIC_URL==""}<label>{/if}-->*}
									<input name="CityCd[]"
									       type="{if $SelFlag == 1}radio{else}checkbox{/if}"
									       id="selectCity{$sitei_siku.SHIKUCHOUSON_CD}"
									       value="{$sitei_siku.SHIKUCHOUSON_CD}"
								           {foreach from=$research_data.ReCityCd  key="key" item="resiteicd" name="loopName"}
								               {if $resiteicd == $sitei_siku.SHIKUCHOUSON_CD}
								               checked
								               {/if}
								           {/foreach} />
									{if $sitei_siku.STATIC_URL==""}<a href="javascript:SelSikucyoson_Link('{$sitei_siku.SHIKUCHOUSON_CD}')">{else}<a href="{$sitei_siku.STATIC_URL}">{/if}
										{$sitei_siku.SHIKUCHOUSON}
										{if $sitei_siku.REC_CNT>0}
											({$sitei_siku.REC_CNT}件)
										{/if}
									</a>
									{*<!--{if $sitei_siku.STATIC_URL==""}</label>{else}</a>{/if}-->*}
								</li>
							{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 0 || $smarty.foreach.siteiSikuLoop.last}
							</ul>
							{/if}

						{/foreach}
					</div>
					<!-- /innerBlock02 -->
					{/foreach}
					<!-- /政令指定都市 -->
					<!-- innerBlock02 -->
					{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
					{if $cnt != 0 }
					<div  class="innerBlock02">
						{if $v.SITEITOSI_DATA|@count > 0}
							<p class="area">
								【市部】
							</p>
						{/if}
					{foreach from=$v.SHIKUCHOUSON_DATA item=shikuchouson name="sikuLoop"}
						{if $smarty.foreach.sikuLoop.iteration % 3 == 1}
							{if $smarty.foreach.sikuLoop.iteration+3 <= $cnt}
							<ul>
							{else}
							<ul class="last">
							{/if}
						{/if}
							{* SelFlag == 1の場合、単一選択(radioボタン) *}
							<li>
								{*<!--{if $shikuchouson.STATIC_URL==""}<label>{/if}-->*}
								<input name="CityCd[]"
								       type="{if $SelFlag == 1}radio{else}checkbox{/if}"
								       id="selectCity{$shikuchouson.SHIKUCHOUSON_CD}"
								       value="{$shikuchouson.SHIKUCHOUSON_CD}"
								       {foreach from=$research_data.ReCityCd key="key" item="recitycd" name="loopName"}
								           {if $recitycd == $shikuchouson.SHIKUCHOUSON_CD}
								           checked
								           {/if}
								       {/foreach} />
								{if $shikuchouson.STATIC_URL==""}<a href="javascript:SelSikucyoson_Link('{$shikuchouson.SHIKUCHOUSON_CD}')">{else}<a href="{$shikuchouson.STATIC_URL}">{/if}
									{$shikuchouson.SHIKUCHOUSON}
									{if $shikuchouson.REC_CNT>0}
										({$shikuchouson.REC_CNT}件)
									{/if}
								</a>
								{*<!--{if $shikuchouson.STATIC_URL==""}</label>{else}</a>{/if}-->*}
							</li>
						{if $smarty.foreach.sikuLoop.iteration % 3 == 0 || $smarty.foreach.sikuLoop.last}
						</ul>
						{/if}
					{/foreach}
					</div>
					{/if}
					<!-- /innerBlock02 -->
				</div>
				<!-- /innerBlock01 -->
			</div>
			<!-- /selectSearchBlock -->
			{* SelCyoNull == 1の場合、町名選択なし) *}
			{if not $SelCyoNull == 1}
			<p class="moreBtn"><a href="javascript:SelSikucyoson('{$apm.baseurl}search/{$form_act}')"><img src="/images/search/common/btn_more_01.jpg" alt="町名を選択" width="158" height="35" class="rollImg" /></a></p>
			{/if}
			{/foreach}

			{* SelFlag == 1 の場合、次の検索へ *}
			{if not $SelFlag == 1}
			<!-- searchToResult -->
			<div id="searchToResult">
				<!-- innerBlock01 -->
				<div class="innerBlock01">
					<!-- innerBlock02 -->
					<div class="innerBlock02">
						<div class="innerBlock03">
						<dl>
							<dt>検索結果表示：</dt>
							<dd>
								<ul>
									<li>
										<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
										10件ずつ</label></li>
									<li>
										<label><input type="radio" name="dispCount" id="radio2" value="20" />
										20件ずつ</label></li>
									<li class="last">
										<label><input type="radio" name="dispCount" id="radio3" value="30" />
										30件ずつ</label></li>
								</ul>
							</dd>
						</dl>
						<p class="btn">
							<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onclick="SelSikucyosonKensaku('{$apm.baseurl}rstobi/rstobi')" />
						</p>
						</div>
						<!-- /innerBlock03 -->
					</div>
					<!-- /innerBlock02 -->
				</div>
				<!-- /innerBlock01 -->
			</div>
			<!-- /searchToResult -->
			{else}
			<!-- searchToResult02 -->
			<div id="searchToResult02">
				<!-- innerBlock01 -->
				<div class="innerBlock01">
					<div class="innerBlock02">
						<div class="innerBlock03">
							<p class="btn">
								<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelSikucyoson('{$apm.baseurl}search/{$form_act}')" />
							</p>
						</div>
					</div>
				</div>
				<!-- /innerBlock01 -->
			</div>
			<!-- /searchToResult02 -->
			{/if}
			{* SelCyoNull == 1の場合、町名選択なし) * }
			{* こだわり物件検索の場合は物件一覧へ * }
			{if $SelCyoNull != 1 && $KodawariId|@count <= 0}
				<!-- searchToResult -->
				<div id="searchToResult02">
					<!-- innerBlock01 -->
					<div class="innerBlock01">
						<!-- innerBlock02 -->
						<div class="innerBlock02">
							<div class="innerBlock03">
								<p class="btn">
									<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelSikucyoson('{$apm.baseurl}search/{$form_act}')" />
								</p>
							</div>
							<!-- /innerBlock03 -->
						</div>
						<!-- /innerBlock02 -->
					</div>
					<!-- /innerBlock01 -->
				</div>
				<!-- /searchToResult -->
			{elseif $SelFlag == 1}
				<!-- searchToResult02 -->
				<div id="searchToResult02">
					<!-- innerBlock01 -->
					<div class="innerBlock01">
						<div class="innerBlock02">
							<div class="innerBlock03">
								<p class="btn">
									<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onClick="SelSikucyosonKensaku('{$apm.baseurl}rstobi/rstobi')" />
								</p>
							</div>
						</div>
					</div>
					<!-- /innerBlock01 -->
				</div>
				<!-- /searchToResult02 -->
			{else}
			<!-- searchToResult -->
			<div id="searchToResult">
				<!-- innerBlock01 -->
				<div class="innerBlock01">
					<!-- innerBlock02 -->
					<div class="innerBlock02">
						<div class="innerBlock03">
						<dl>
							<dt>検索結果表示：</dt>
							<dd>
							
							
							
							{*
								<ul>
									<li>
										<label><input name="dispCount" type="radio" id="radio" value="20" checked="checked" />
										20件ずつ</label></li>
									<li>
										<label><input type="radio" name="dispCount" id="radio2" value="40" />
										40件ずつ</label></li>
									<li class="last">
										<label><input type="radio" name="dispCount" id="radio3" value="60" />
										60件ずつ</label></li>
								</ul>
							* }
								
								{* 2010/12/28 10件毎表示対応 * }
								<ul>
									<li>
										<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
										10件ずつ</label></li>
									<li>
										<label><input type="radio" name="dispCount" id="radio2" value="20" />
										20件ずつ</label></li>
									<li class="last">
										<label><input type="radio" name="dispCount" id="radio3" value="30" />
										30件ずつ</label></li>
								</ul>
								
								
								
							</dd>
						</dl>
						<p class="btn">
							<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search.gif" alt="検索" onclick="SelSikucyosonKensaku('{$apm.baseurl}rstobi/rstobi')" />
						</p>
						</div>
						<!-- /innerBlock03 -->
					</div>
					<!-- /innerBlock02 -->
				</div>
				<!-- /innerBlock01 -->
			</div>
			<!-- /searchToResult -->
			{/if}
*}

		<div id="hiddenval">
			{$hiddenTag}
		</div>
	</form>
